//
//  ViewController.swift
//  SGSwiftExtensionDemo
//
//  Created by xyanl on 2025/5/20.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        
        // 2. 正常使用print
        let sampleDict: [String: Any] = [
            "name": "赵云",
            "age": 30,
            "date": Date(),
            "website": URL(string: "https://example.com/user/12345")!,
            "address": [
                "street": "123 Main St",
                "city": "New York"
            ],
            "hobbies": ["Reading", "Swimming", "Coding"],
            "nullValue": NSNull(),
            "trueValue": true,
            "emptyArray": [],
            "emptyDict": [:],
        ]
        
        print(sampleDict as NSDictionary)
        print(sampleDict)
        SGLogBeautifier.print(sampleDict)
        
    }


}

